package com.ruoyi.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.finance.domain.DTO.CheckOutDTO;
import com.ruoyi.finance.domain.DTO.KltPurchaseDetailDTO;
import com.ruoyi.finance.domain.DTO.KltPurchaseDetailStockDTO;
import com.ruoyi.finance.domain.DTO.KltSalesDetailStockDTO;
import com.ruoyi.finance.domain.KltPurchaseBatch;
import com.ruoyi.finance.domain.KltPurchaseDetail;
import com.ruoyi.finance.domain.KltSalesDetail;
import io.lettuce.core.dynamic.annotation.Param;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

/**
 * (KltPurchaseDetail)表数据库访问层
 *
 * @author makejava
 * @since 2024-12-19 12:18:03
 */
public interface KltPurchaseDetailDao extends BaseMapper<KltPurchaseDetail> {
    List<KltPurchaseDetailStockDTO> getAllKltPurchaseDetailStockList(@Param("kltPurchaseDetail") KltPurchaseDetailStockDTO kltPurchaseDetail);
    Boolean updateDeleteKltPurchaseDetail(@Param("kltPurchaseDetail") List<Long> idList);

    /**
     * 获取合同采购数量与采购单价
     **/
    List<CheckOutDTO> getPurchaseDetailPriceBySalesOrderId(Integer salesOrderId);

    /**
    *  根据销售合同查看采购到货数
    * */
    Integer getPurchaserAndIsArrivedCount(Integer salesOrderId);




}

